package com.biostime.qdingding.modules.qd.dao;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.entity.Privilege;


/**
 * 返款特权Dao
 * @author phil
 * @version 2015-12-16
 */
@MyBatisDao
public interface PrivilegeDao extends CrudDao<Privilege> {

	Privilege getPrivilege(Privilege leavePriv);
	
	
//	  <!-- ————————————————————————————楚河汉界，谁敢动我的，打死! ————————————————————————————————————-->
	
	public Privilege apiGetPrivilege(@Param("type")String type,@Param("contractId")String contractId);
	
	public int apiUpdatePrivilege(@Param("id") String id,@Param("used") int used);
	
}